home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group01b.txt
/
000124_icon-group-sender_Thu Aug 2 17:06:44 2001.msg
< prev
next >
Wrap
Internet Message Format
|
2002-01-03
|
3KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id f7306VI07739
for icon-group-addresses; Thu, 2 Aug 2001 17:06:31 -0700 (MST)
Message-Id: <200108030006.f7306VI07739@baskerville.CS.Arizona.EDU>
From: Chris.D.Tenaglia@jci.com
Subject: Re: list processing
To: icon-group@cs.arizona.edu
Cc: dodo@hotmail.com
Date: Thu, 2 Aug 2001 15:14:45 -0500
X-MIMETrack: Serialize by Router on jwimkrs1.na.jci.com/NA/Johnson_Controls(Release 5.07a
|May 14, 2001) at 08/02/2001 03:34:52 PM
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
Content-Length: 2090
oops, I forgot the concatenator on the command := line
sorry.
Chris.D.Tenagl
ia@jci.com To: dodo@hotmail.com
cc: icon-group@CS.Arizona.EDU
08/02/01 11:02 Subject: Re: list processing
AM
procedure main(param)
renlist := param[1]
(in := open(renlist)) | stop("Can't read ",renlist)
every line := !in do
{
old := parse(line,'\' ')[1]
new:=parse(line,'\' ')[2]
command := "ren " || old || " " || new
write(command)
system(command)
}
close(in)
write("Process completed.")
end
procedure parse(line,delims)
static chars
chars := &cset -- delims
tokens := []
line ? while tab(upto(chars)) do put(tokens,tab(many(chars)))
return tokens
end
dodo@hotmail.
com To: icon-group@CS.Arizona.EDU
cc:
08/02/01 Subject: list processing
12:09 AM
hello
i need to rename a number of files (approx 120)
all files to be renamed are in the same directory
i have a list with entries like this:
'name1' 'newname1'
'name2' 'newname2'
.
.
How can i force msdos REName to accept name, newname as parameters ?
(i use Icon Version 9.3.2. July 1, 1999 for msdos)
Can you give me a hint ?